Expand description

biome_deserialize consists of data structures that know how to deserialize themselves along with data formats that know how to deserialize data. It provides a framework by which these two groups interact with each other, allowing any supported data structure to be deserialized using any supported data format.

This crate inspired by serde. 0ne of the main difference is the fault-tolerant behavior of biome_deserialize. Serde uses a fast-fail strategy, while biome_deserialize deserialize as much as possible and report several diagnostics (errors, warning, deprecation messages, …). Also, biome_deserialize is intended to deserialize textual data formats.

biome_deserialize assumes that every supported data formats supports the following types:

  • null-like values;
  • boolean;
  • number – integers and floats;
  • string;
  • array;
  • maps of key-value pairs (covers objects).

It currently supports the JSON data format. See [biome_deserialize::json] for more details.

The two most important traits are Deserializable and DeserializableValue.

  • A type that implements Deserializable is a data structure that can be deserialized from any supported data format;
  • A type that implements DeserializableValue is a data format that can deserialize any supported data structure.

You can find a guide and more examples in the README.

Re-exports§

Modules§

Structs§

Traits§

Functions§

  • Validates whether the given value is non-empty.